﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Daemon.Model
{
    [Table("secured_item")]
    public partial class SecuredItem
    {
        [Key]
        [Column("Id")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]

        public int Id { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public int? SecuredItemGroupId { get; set; }

        public virtual ICollection<RoleSecuredItem> RoleSecuredItems { get; set; }

        [ForeignKey("SecuredItemGroupId")]
        public virtual SecuredItemGroup SecuredItemGroup { get; set; }
    }
}
